<%@taglib prefix="jlc" uri="/WEB-INF/tlds/jlcindia.tld"%>
<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page isELIgnored="false"%>
<html>
	<head>
	<link rel="stylesheet" type="text/css" 
		href="<%=request.getContextPath()%>/css/jlcindia.css">
		<link rel="stylesheet" type="text/css" 
		href="<%=request.getContextPath()%>/css/main.css">	
	</head>
	<body>
	<center>
		<table class="textStyle" width="95%">
			<tr>
				<td>
					<font color="yellow"><b>Welcome &nbsp;<font color="white">
						${USER_TO.firstName} &nbsp;${USER_TO.middleName} &nbsp;
						${USER_TO.lastName} </font>[${USER_TO.role}]</b>
					</font>
				</td> 
				<td>
					<a href="userHomeDef.jsp">Home</a>
				</td>
				<jstl:if test="${USER_TO.role eq 'Admin'}">
					<td><a href="addBookDef.jsp">AddBook</a></td>
				</jstl:if>	
				<td><a href="searchBookDef.jsp">SearchBook</a></td>
				<jstl:if test="${USER_TO.role eq 'User'}">
					<td><a href="userorderstatus.jlc">MyOrderStatus</a></td>
				</jstl:if>	
				<jstl:if test="${USER_TO.role eq 'Admin'}">
					<td><a href="allorders.jlc">DisplayOrders</a></td>
				</jstl:if>	
				<td><a href="detailsDef.jsp">ViewDetails</a></td>
				<td>
					<a href="changePasswordDef.jsp">ChangePassword</a>
				</td>
				<td>
					<a href="logout.jlc">Logout</a>
				</td>
			</tr>		
		</table>
	</center>
	</body>
</html>